


    <meta charset="utf-8">
    <style type="text/css">
    th{
        width: 9em;
    }
    tr,td{
        border: 1px #ADBFCD solid;
    }
    .odd{
        background-color: #EBEBEB;
    }
</style>

    <table class="table table-bordered table-hover table-striped table-top" data-toggle="tablefixed" data-width="100%" data-nowrap="true">

                <thead>
                <tr>
                    <th width="80">NO.</th>
                    <th width="80">设备名称</th>
                    <th width="80">设备描述</th>
                    <th width="110">设备类型</th>
                    <th width="110">设备状态</th>
                    <th width="110">设备位置</th>
                    <th width="110">最后操作时间</th>
                    <th width="80">最后操作人</th>
                    <th width="80">持续时间(H)</th>
                </tr>

                </tr>
                </thead>
                <tbody>

                <g:each in="${eqpList}" status="i" var="tableInstance">
                    <tr>
                        <td width="60">${i+1}</td>
                        <td width="80">${tableInstance.Equipment_Id}</td>
                        <td width="80">${tableInstance.eqp_desc}</td>

                        <td width="80">${tableInstance.EQP_TYPE}</td>
                        <td width="80" style="background-color:
                        <g:if test="${tableInstance.SUB_STATE=="RUN"}">
                            #00FF00
                        </g:if>
                        <g:elseif test="${tableInstance.SUB_STATE=="DOWN"}">
                            #FF0000
                        </g:elseif>
                        <g:elseif test="${tableInstance.SUB_STATE=="IDLE"}">
                            #ffd700
                        </g:elseif>
                        <g:else>
                            #FFFFFF
                        </g:else>

                        ">${tableInstance.SUB_STATE}</td>
                        <td width="80">${tableInstance.LOCATION}</td>
                        <td width="80">${tableInstance.UPDATED}</td>
                        <td width="110">${tableInstance.UPDATED_BY}</td>
                        <td width="110">${tableInstance.DURATION}</td>
                    </tr>
                </g:each>





    </tbody>
    </table>

